﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using DataLib.Common;
using DataLib.Accounts.Bus;
using DataLib.Accounts.Data;
using DataLib.Model;

namespace Ewts.Project
{
    public partial class ProjectRelation : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request["id"] != null && Request["id"].ToString().Trim() != "")
                {
                    int id = int.Parse(Request["id"].ToString());
                }
                if (Request["LoadID"] != null && Request["LoadID"].ToString().Trim() != "")
                {
                    int loadid = int.Parse(Request["id"].ToString());
                }
                GetGrid();
            }
        }

        private void GetGrid()
        {
            string strwhere = " ";
            DataLib.BLL.ProjectsRelation pBll = new DataLib.BLL.ProjectsRelation();
            DataTable dt = pBll.GetList(strwhere).Tables[0];
            this.rept.DataSource = dt;
            this.rept.DataBind();
        }
    }
}